<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateQaecmsJobsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('qaecms_jobs', function (Blueprint $table) {
            $table->increments('id')->comment('id');
            $table->string('name')->comment('任务名称');
            $table->string('method')->comment('任务执行方法');
            $table->string('api')->comment('采集API');
            $table->dateTime('lasttime')->comment('任务最近执行时间')->nullable();
            $table->tinyInteger('status')->comment('定时状态')->default(0);
            $table->tinyInteger('bindstatus')->comment('绑定状态')->default(0);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('qaecms_jobs');
    }
}
